<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BOM : window</title>
</head>
<body>

    <button type="button" onclick="window.close()">关闭窗口</button>

    <button type="button" onclick="window.moveBy( 100 , 100 )">移动窗口</button>

    <button type="button" onclick="window.moveTo( 200 , 100 )">移动窗口到指定位置</button>
    
    <button type="button" onclick="window.resizeBy( 10 , 10 )">修改窗口尺寸</button>

    <button type="button" onclick="window.resizeTo( 600 , 400 )">修改窗口大小为指定尺寸</button>

</body>
</html>